/**
 * Created by wangshuyi on 2017/3/2.
 */

'use strict';
const path = require('path');
var barcode = require('barcode');
var code39 = barcode('code39', {
    data: "it works",
    width: 400,
    height: 100,
});
var outfile = path.join(__dirname, 'imgs', 'mycode.png')
code39.saveImage(outfile, function (err) {
    if (err) throw err;

    console.log('File has been written!');
});

// let svg_string = qr.imageSync('I love QR!');